xend: Fix destruction of VMMetrics objects for managed domains
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Jul 2008 10:12:36 +0000 (11:12 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Jul 2008 10:12:36 +0000 (11:12 +0100)
commit6ed38332916e3e7e4407019d2bad262e93fe5872
treed6ce2f95d01364122910eea831b976762a5084a9
parentbdfd5fc7d18ac6e6d83e675bfb1ddce59ec144a6
xend: Fix destruction of VMMetrics objects for managed domains

While plugging a xend memory lead (c/s 18030), I introduced a bug in
the case of managed domains.  Managed domains continue to exist after
shutdown and thus should not have their associated VMMetrics object
destroyed until deleted.

The bug actually manifested by a new -> start -> shutdown -> delete
sequence of operations.  Shutdown destroyed the VMMetrics object and
delete tried to do the same :-):

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendDomainInfo.py